import request from '@/router/axios'

export const getTree = (params) => {
  return request({
    url: '/api/materialgroup/getTree',
    method: 'get',
    params
  })
}

export const getBomHistory = (params) => {
  return request({
    url: '/api/prdbomresume/list',
    method: 'get',
    params
  })
}

export const getBomDetail = (params) => {
  return request({
    url: '/api/prdbomresume/bomTreeByPrdNo',
    method: 'get',
    params
  })
}
